package com.liqing.movecomment.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;


@ApiModel("插入 留言")
public class MessageVo implements Serializable {
    /**
     * 评论id
     */
    @ApiModelProperty("评论的id")
    private Integer id;
    /**
     */
    @ApiModelProperty("其他的id")
    private Integer otherId;
    //<editor-fold defaultstate="collapsed" desc="delombok">
    private String root;
    private String parent;
    private Integer replyId;
    private Reply reply;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public MessageVo() {
    }
    //</editor-fold>

    /**
     * 评论id
     */
    @SuppressWarnings("all")
    public Integer getId() {
        return this.id;
    }

    /**
     */
    @SuppressWarnings("all")
    public Integer getOtherId() {
        return this.otherId;
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public String getRoot() {
        return this.root;
    }
    //</editor-fold>

    @SuppressWarnings("all")
    public String getParent() {
        return this.parent;
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public Integer getReplyId() {
        return this.replyId;
    }
    //</editor-fold>

    @SuppressWarnings("all")
    public Reply getReply() {
        return this.reply;
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    /**
     * 评论id
     */
    @SuppressWarnings("all")
    public void setId(final Integer id) {
        this.id = id;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    /**
     */
    @SuppressWarnings("all")
    public void setOtherId(final Integer otherId) {
        this.otherId = otherId;
    }

    @SuppressWarnings("all")
    public void setRoot(final String root) {
        this.root = root;
    }

    @SuppressWarnings("all")
    public void setParent(final String parent) {
        this.parent = parent;
    }

    @SuppressWarnings("all")
    public void setReplyId(final Integer replyId) {
        this.replyId = replyId;
    }

    @SuppressWarnings("all")
    public void setReply(final Reply reply) {
        this.reply = reply;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof MessageVo)) return false;
        final MessageVo other = (MessageVo) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final Object this$otherId = this.getOtherId();
        final Object other$otherId = other.getOtherId();
        if (this$otherId == null ? other$otherId != null : !this$otherId.equals(other$otherId)) return false;
        final Object this$replyId = this.getReplyId();
        final Object other$replyId = other.getReplyId();
        if (this$replyId == null ? other$replyId != null : !this$replyId.equals(other$replyId)) return false;
        final Object this$root = this.getRoot();
        final Object other$root = other.getRoot();
        if (this$root == null ? other$root != null : !this$root.equals(other$root)) return false;
        final Object this$parent = this.getParent();
        final Object other$parent = other.getParent();
        if (this$parent == null ? other$parent != null : !this$parent.equals(other$parent)) return false;
        final Object this$reply = this.getReply();
        final Object other$reply = other.getReply();
        if (this$reply == null ? other$reply != null : !this$reply.equals(other$reply)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof MessageVo;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * PRIME + ($id == null ? 43 : $id.hashCode());
        final Object $otherId = this.getOtherId();
        result = result * PRIME + ($otherId == null ? 43 : $otherId.hashCode());
        final Object $replyId = this.getReplyId();
        result = result * PRIME + ($replyId == null ? 43 : $replyId.hashCode());
        final Object $root = this.getRoot();
        result = result * PRIME + ($root == null ? 43 : $root.hashCode());
        final Object $parent = this.getParent();
        result = result * PRIME + ($parent == null ? 43 : $parent.hashCode());
        final Object $reply = this.getReply();
        result = result * PRIME + ($reply == null ? 43 : $reply.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    public String toString() {
        return "MessageVo(id=" + this.getId() + ", otherId=" + this.getOtherId() + ", root=" + this.getRoot() + ", parent=" + this.getParent() + ", replyId=" + this.getReplyId() + ", reply=" + this.getReply() + ")";
    }
    //</editor-fold>
}
